#pragma once
#include <BaseCommand.h>
#include <GraphicsBoxItem.h>


class SetModeCommand : public BaseCommand
{
public:
	SetModeCommand(GraphicsBoxItem* boxItem, BaseCommand* stretchCommand,
		BoxGraphicsMode oldMode, BoxGraphicsMode newMode);
protected:
	void undo()override;
	void redo()override;
private:
	void setMode(BoxGraphicsMode mode);
private:
	GraphicsBoxItem* m_boxItem = nullptr;
	BaseCommand* m_stretchCommand = nullptr;
	BoxGraphicsMode m_oldMode;
	BoxGraphicsMode m_newMode;
};

